class invariant造句
例句與造句
- a typical kind of property that you might want to express, say, in a class invariant for a graph class, is that the graph has no cycles
比如在一個圖類中,你可能想要表述的典型屬性是該圖沒有回路。 - it's typical that class invariants define properties that indicate how the various constituents of the class, such as balance and deposit / withdrawal lists, maintain consistency with each other
這個典型例子表明:類不變式定義屬性,該屬性指明類的可變要素(如余額和存儲/支取清單)如何維護彼此一致性。 - it \'s typical that class invariants \ r \ ndefine properties that indicate how the various constituents of the \ r \ nclass, such as balance and deposit / withdrawal lists, maintain \ r \ nconsistency with each other
這個典型例子表明:類不變式定義屬性,該屬性指明類的可變要素(如余額和存儲/支取清單)如何維護彼此一致性。 - for example, if you have a bank account class with a field that represents the current balance and a field that contains a list of all deposits and withdrawals since the opening of the account, then you would have a class invariant that states that the value of the balance field is equal to the total of all the deposit values so far minus the total of all the withdrawal values so far
例如,你有一個銀行帳戶類,它包含一個表示當前余額的字段和一個包含帳戶自開通以來所有儲蓄和支取清單的字段,那么你也應該有一個類不變式表明余額字段的值與累計儲蓄和累計支取之差相一致。 - It's difficult to find class invariant in a sentence. 用class invariant造句挺難的